package com.codeoss.framework.view.renderer;

import org.springframework.stereotype.Service;

import com.codeoss.framework.context.YunContext;
import com.codeoss.framework.view.component.Component;
import com.codeoss.framework.view.component.DataGridColumn;

@Service("datagridcolumnRenderer")
public class DataGridColumnRenderer extends CommonComponentRenderer {
	protected void startRenderView(YunContext yunContext, Component component, ViewSerializeMap viewSerializeMap) {
		super.startRenderView(yunContext, component, viewSerializeMap);
		DataGridColumn dataGridColumn=(DataGridColumn)component;
		
		viewSerializeMap.put("title", dataGridColumn.getTitle());
		viewSerializeMap.put("fixed", dataGridColumn.isFixed());
		viewSerializeMap.put("visible", true); 
	}
}
